package com.ikas.autumn.iec104.common.enums;

/**
 * @author dbh
 * @date 2019-06-14
 * @description 缓存常量
 */
public interface PrefixConstants {

	/**
	 * 菜单权限-redis缓存前缀
	 */
	public static final String MENU_CACHE_PREFIX = "gw:sys:cache:menu:";

	/**
	 * 操作权限-redis缓存前缀
	 */
	public static final String PERM_CACHE_PREFIX = "gw:sys:cache:permission:";

	/**
	 * 表字典信息缓存
	 */
    public static final String SYS_DICT_TABLE_CACHE = "gw:sys:cache:dictTable";

	public static final String TEST_DEMO_CACHE = "gw:sys:test:demo";

	/**
	 * Set结构
	 */
	public static final String DEVICE_IDS_ALL = "gw:device:ids:all";
	/**
	 * Set结构
	 */
	public static final String IOT_IDS_MAPPER_PREFIX = "gw:iot:ids:mapper:";

	/**
	 * gateway路由缓存
	 */
	public static final String GATEWAY_ROUTES = "gw:sys:cache:cloud:gateway_routes";

	/**
	 * 测点数据redis缓存前缀 Hash结构
	 */
	public static final String METE_CACHE_PREFIX = "gw:device:cache:mete:";
	/**
	 * 参数模型数据redis缓存前缀 Hash结构
	 */
	public static final String ATTR_CACHE_PREFIX = "gw:device:cache:attr:";

	/**
	 * Hash结构 iot:ids:range
	 * key:ip地址
	 * value:最小slotid-最大slotid
	 */
	public static final String IOT_IDS_RANGE_PREFIX = "gw:iot:ids:range";
	/**
	 * Hash结构 iot:ids:range
	 * key:ip地址
	 * value:最小slotid-最大slotid
	 */
	public static final String IOT_SENTINEL_PREFIX = "gw:iot:sentinel:flag";

	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_METES_IEC_PREFIX = "gw:iot:metes:iec:";
	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_METES_MQTT_PREFIX = "gw:iot:metes:mqtt:";
	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_METES_HTTP_PREFIX = "gw:iot:metes:http:";
	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_CONDITIONS_IEC_PREFIX = "gw:iot:conditions:iec:";
	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_CONDITIONS_MQTT_PREFIX = "gw:iot:conditions:mqtt:";
	/**
	 * Hash结构 用于iot解析连接数据的支持
	 */
	public static final String IOT_CONDITIONS_HTTP_PREFIX = "gw:iot:conditions:http:";

	/**
	 * tsdb数据库
	 */
	public static final String DATABASE = "iot_data";
	/**
	 * 超级表前缀
	 */
	public static final String STABLE_PREFIX = "iot_stable_";
	/**
	 * 子表前缀
	 */
	public static final String TABLE_PREFIX = "iot_table_";
}
